home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / Clock / Sources / PartInfo.fr < prev    next >
Encoding:
Text File  |  1996-09-17  |  2.4 KB  |  123 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                PartInfo.fr
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef FWRESFIL_K
  11. #include "FWResFil.k"
  12. #endif
  13.  
  14. #ifndef FWPART_FR
  15. #include "FWPart.fr"
  16. #endif
  17.  
  18. #ifndef DEFINES_K
  19. #include "Defines.k"
  20. #endif
  21.  
  22. #ifndef BINDING_K
  23. #include "Binding.k"
  24. #endif
  25.  
  26. #ifndef SLGCONST_K
  27. #include "SLGConst.k" 
  28. #endif
  29.  
  30. #ifndef FWVIEWS_FR
  31. #include "FWViews.fr" 
  32. #endif
  33.  
  34. #ifndef FWVIEWS_FR
  35. #include "FWViews.fr"
  36. #endif
  37.  
  38. #ifndef FWWINDOW_K
  39. #include "FWWindow.k"
  40. #endif
  41.  
  42. //----------------------------------------------------------------------------------------
  43. //    PartInfo Resource
  44. //----------------------------------------------------------------------------------------
  45.  
  46. resource FW_RPartInfo(kPartInfoID)
  47. {
  48.     // ----- Icon ID
  49.     kViewAsIconID,
  50.     
  51.     // ----- MenuBar ID
  52.     kMenuBar,
  53.     
  54.     // ----- Document Window ID
  55.     kDocumentWindowID,
  56.     
  57.     // ----- Part Name
  58.     kODFClockEditorUserString,
  59.     
  60.     // ----- PartKind
  61.     kODFClockKind
  62. };
  63.  
  64. //----------------------------------------------------------------------------------------
  65. //    Document Window Resource
  66. //----------------------------------------------------------------------------------------
  67.  
  68. resource FW_RDocumentWindow(kDocumentWindowID)
  69. {
  70.     // ----- Size
  71.     {FW_FIX(200), FW_FIX(200)},
  72.     
  73.     // ----- Position
  74.     {FW_FIX(0), FW_FIX(0)},        // (0,0) means default position
  75.     
  76.     // ----- Style
  77.     FW_kDocumentWindow,
  78.  
  79.     // ----- Presentation
  80.     kAnalogPresentation
  81. };
  82.  
  83. //----------------------------------------------------------------------------------------
  84. //    About Resource
  85. //----------------------------------------------------------------------------------------
  86.  
  87. resource FW_RAbout(kAbout)
  88. {
  89.     // ----- Icon ID
  90.     kAboutIconID,
  91.     
  92.     // ----- Part Name
  93.     FW_RStyledText
  94.     (
  95.         FW_FIX(18), 
  96.         FW_kBold, 
  97.         "times", 
  98.         "ODFClock"
  99.     ),
  100.     // ----- Version Number
  101.     FW_RStyledText
  102.     (
  103.         FW_FIX(9),
  104.         FW_kPlain,
  105.         "geneva",
  106.         "ODF Release 2"
  107.     ),
  108.     // ----- Credits
  109.     FW_RStyledText
  110.     (
  111.         FW_FIX(9),
  112.         FW_kPlain,
  113.         "geneva",
  114.         "ODFClock is a simple non-embedding part editor displaying a clock "
  115.         "in either digital or anolog mode. In analog mode ODFClock uses a "
  116.         "non-rectangular used shape.\r\r\r"
  117.         "Written by the ODF Team.\r"
  118.     ),
  119.     // ----- ButtonString
  120.     "OK",
  121.     // ----- ButtonSize
  122.     {FW_FIX(80), FW_FIX(30)}
  123. };